package org.neuedu.vblogserver.mapper;

import org.neuedu.vblogserver.bean.Role;
import org.neuedu.vblogserver.bean.User;
import org.neuedu.vblogserver.bean.UserBean;

import java.util.List;

public interface UserMapper {

    User loadUserByUsername(String s);

    List<Role> getRolesById(Long id);

    List<UserBean> getUsers(String serchKeyWord);

    int isEnabled(UserBean userBean);

    int isLocked(UserBean userBean);

    int selectRoleCount(Integer uid);

    int delUserRole(Integer uid, Integer rid);
}